package com.cabal.job;

import com.cabal.auth.service.ICabalAuthService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class CabalAuthControlJob {

	@Autowired
	private ICabalAuthService cabalAuthService;


	@Scheduled(cron="${cabal-auth-control-cron:0/5 * * * * ?}")
	public void cabalAuthControl() {
		log.info("账号控制定时任务开始......");
		cabalAuthService.cabalAuthControl();
		log.info("账号控制定时任务结束......");
	}
}